package com.yunke.entity.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;

/**
 * 管理员登录DTO
 * 
 * @author yunke
 * @since 1.0.0
 */
@Data
@Schema(name = "YunkeAdminLoginDto", description = "管理员登录DTO")
public class YunkeAdminLoginDto {

    @NotBlank(message = "用户名不能为空")
    @Size(min = 3, max = 20, message = "用户名长度在3-20个字符")
    @Schema(description = "用户名", required = true)
    private String username;

    @NotBlank(message = "密码不能为空")
    @Size(min = 6, max = 20, message = "密码长度在6-20个字符")
    @Schema(description = "密码", required = true)
    private String password;

    @Schema(description = "验证码")
    private String captcha;

    @Schema(description = "验证码key")
    private String captchaKey;

    @Schema(description = "记住我")
    private Boolean rememberMe = false;
} 